<include file='Base:header' />
<style>
.tag:visited{background-color: #ed6d3d;}
</style>
	<body>
		<div class="out_list">
			<h1 class="title">
				<a class="back" href="{$goback}">
					<img class="fl" src="__IMG__/back.png" style="margin-left: 5%;"/>
				</a>
				我发起的{$title}
				<a class="home" href="__APP__">
					<img class="fl" src="__IMG__/home_logo.png" style="margin-right: 5%;"/>
				</a>
			</h1>
			<include file='Base:_submit_intro' /> 
			
			<neq name='_GET[type]' value='5'>
				<div class="weui-cells">
					<a class="weui-cell weui-cell_access" href="{:U('submit',['type'=>$_GET['type'],'out_time'=>date('Y-m-d 18:00'),'overtime_start'=>date('Y-m-d 20:00'),'overtime_end'=>date('Y-m-d 05:59',strtotime('+1 day'))])}">
					    <div class="weui-cell__bd">
					      	<p>提交{$title}申请</p>
					    </div>
					    <div class="weui-cell__ft">
					    </div>
					</a>
				</div>
			</neq>	
			
			<in name='_GET[type]' value='3,5'>
	 			<div class="weui-flex" style="margin-top: 20px;">
					<div class="weui-flex__item" style="text-align: center;">
						<a href="{:U('',['type'=>3])}"  class="weui-btn weui-btn_plain-primary weui-btn_mini {$_GET[type] == 3 ? 'weui-btn_primary' : ''}" >手动提交</a>
					</div>
					<div class="weui-flex__item" style="text-align: center;">
						<a href="{:U('',['type'=>5])}"  class="weui-btn weui-btn_plain-primary weui-btn_mini {$_GET[type] == 5 ? 'weui-btn_primary' : ''}" >系统提交</a>
					</div>
				</div>
			</in>
			
			<div class="weui-cells" id='list-box'>
				
			</div>
		</div>
 		<div class="weui-loadmore" id='loading' style="display:none">
		  <i class="weui-loading"></i>
		  <span class="weui-loadmore__tips">正在加载</span>
		</div> 
		<include file='Base:footer' />
		<script type="text/javascript">
			showList(1,"{$_GET[type]}");//初始化出数据
			/*下拉加载*/
			$(document.body).infinite(10).on("infinite", function() {
			  if(loading) return;
		      showList(nextpage,"{$_GET[type]}");//执行数据加载

			});
		</script>
	</body>
</html>